package io.renren.modules.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.shop.entity.*;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author Yangqianyong
 * @email sunlightcs@gmail.com
 * @date 2021-11-17 15:35:51
 */
public interface ProductService extends IService<ProductEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Integer category);

    List<ProductPictureEntity> getProductPicture(Long id);

    ProductDetailEntity getDetailById(Long id);

    List<ProductDetailEntity> getProductBySearch(String search);

    List<ProductDetailEntity> getProductBySearch(String search,Integer rack);

    List<ProductDetailEntity> getProductByCategory(Integer categoryId);

    List<ProductDetailEntity> getProductByCategory(Integer categoryId,Integer rack);

    List<ProductDetailRackEntity> getMerchant(Long id);

    List<ProductDetailRackEntity> getMerchant(Long id,Integer rack);


}


